using System ; using System . IO ; using System . Security . Cryptography ; using System . Text ; namespace crypto { class MainClass { public static void Main ( string [] args ) { var enc = Encoding . Default ; var plainText = Console . ReadLine (); var key = "my pass" ; var secure = ProtectedData . Protect ( enc . GetBytes ( plainText ), enc . GetBytes ( key ), DataProtectionScope . CurrentUser ); File . WriteAllText ( "1.txt" , Convert . ToBase64String ( secure )); var plain = enc . GetString ( ProtectedData . Unprotect ( Convert . FromBase64String ( File . ReadAllText ( "1.txt" )), enc . GetBytes ( key ), DataProtectionScope . CurrentUser )); Console . WriteLine ( plain ); } } } В этом примере показана вся мощь платформы Microsoft.Net/Mono C#. Какой еще язык на такое способен. Для Компиляции необходима ссылка на сборку System.Security.dll. В результат...
t.me/perfect0sight