decrypt

abstract fun decrypt(text: String): String(source)

Decrypts previously encrypted text back to its original form. Implementations should ensure:

  • Exact restoration of the original text

  • Proper validation of encrypted input

  • Graceful handling of corrupted data

Return

Original decrypted text

Parameters

text

Previously encrypted text

Throws

if text is not properly encrypted