This repo demonstrates using symmetric and asymmetric encryption using the SubtleCrypto API available on browsers and node.
The demos should work even if you're offline.