Toy rsa encryption implementation, done at school