There's a very minor typo: - $self->{_encrpytion_method} = sub { + $self->{_encryption_method} = sub { Thanks! Arun