ReverseEncrypter - Naive Implementation of EncryptionContract
require 'encryption_contract' | |
# Naive and totally lame encrypter that just reverses the string. | |
class ReverseEncrypter | |
include EncryptionContract | |
def encrypt(s) | |
s.reverse | |
end | |
def decrypt(s) | |
s.reverse | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment