UtilEncryptionCaesarEncrypt Method
Encrypts a string using Caesar's substitution cipher.
Namespace: DevCase.Core.Security.Cryptography.EncryptionAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string CaesarEncrypt(
string text,
int positions,
string charSet = ""
)
Public Shared Function CaesarEncrypt (
text As String,
positions As Integer,
Optional charSet As String = ""
) As String
Dim text As String
Dim positions As Integer
Dim charSet As String
Dim returnValue As String
returnValue = UtilEncryption.CaesarEncrypt(text,
positions, charSet)
public:
static String^ CaesarEncrypt(
String^ text,
int positions,
String^ charSet = L""
)
static member CaesarEncrypt :
text : string *
positions : int *
?charSet : string
(* Defaults:
let _charSet = defaultArg charSet ""
*)
-> string
No code example is currently available or this language may not be supported.
- text String
-
The text to encrypt.
- positions Int32
-
The character position shifting.
- charSet String (Optional)
-
A set of characters to use in encoding.
String
The encrypted string.
This is a code example.
No code example is currently available or this language may not be supported.
Dim encrypted As String = CaesarEncrypt("Hello World!", positions:=15)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.