UtilEncryptionMorseCodeEncrypt Method

Converts the input text to Morse code.

Note: characters that has not an official representation in Morse Code will be ignored.

Morse Code Character Table: https://www.electronics-notes.com/articles/ham_radio/morse_code/characters-table-chart.php

Definition

Namespace: DevCase.Core.Security.Cryptography.Encryption
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string MorseCodeEncrypt(
	string input,
	char shortSignal = '.',
	char longSignal = '-',
	string wordSeparator = "......."
)

Parameters

input  String
The text to be converted.
shortSignal  Char  (Optional)
Optional. The character representing a short signal (dot) in Morse code. Default is '.'
longSignal  Char  (Optional)
Optional. The character representing a long signal (dash) in Morse code. Default is '-'
wordSeparator  String  (Optional)
Optional. The string representing a white-space in Morse code. Default is '.......'

Return Value

String
The Morse code representation of the input text.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also