Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
最後に「=」で文字列を暗号化しないアルゴリズムを探しています。
それはなぜですか?これを使用してデータを Cookie に保存していますが、文字列の「=」が Cookie の「=」と競合しています。
誰でもアイデアがありますか?ありがとう..
文字列の=末尾は暗号化によるものではなく、base64 エンコーディングを使用したものです。
=
代わりに 16 進形式を使用できます。
string encoded = BitConverter.ToString(data).Replace("-","");
この文字列には文字 0 ~ 9 と AF のみが含まれているため、競合は発生しません。