BytesExtension..::..AsEncryptedBytes Method (String, String, CipherMethod)
encrypt using a password and protection level to a ByteArray, You can decrypt it using the extension method AsDecryptFromBytes(array<Byte>[]()[][], KeyRing) method
Namespace:
System.TextAssembly: Walter.Cypher (in Walter.Cypher.dll)
Syntax
[FeatureTagsAttribute] public static byte[] AsEncryptedBytes( this string text, string password, CipherMethod cipherMethod )
Parameters
- text
- Type: String
clear text to encrypt
- password
- Type: String
The password to use
- cipherMethod
- Type: Walter.Cypher..::..CipherMethod
The hashing method security complexity