Cryptography.
files (or data) using an app and your keys. If anyone, even you, encrypt (“lock”) something with your public key, only you can decrypt it (“unlock”) with your secret, private key. If you encrypt (“lock”) something with your private key, anyone can decrypt it (“unlock”), but this serves as a proof