added factory methods
parse base64 keys