diff --git a/cropty.cabal b/cropty.cabal
--- a/cropty.cabal
+++ b/cropty.cabal
@@ -1,7 +1,7 @@
 cabal-version:       2.4
 
 name:                cropty
-version:             0.1.0.0
+version:             0.1.1.0
 synopsis:            Encryption and decryption
 description:         Encryption and decryption.
 homepage:            https://github.com/SamuelSchlesinger/cropty
diff --git a/src/Cropty.hs b/src/Cropty.hs
--- a/src/Cropty.hs
+++ b/src/Cropty.hs
@@ -39,6 +39,8 @@
   , generatePrivateKeyWithPublicExponent
     -- * Symmetric Encryption
   , Key (Key, keyBytes)
+  , generateKey
+  , generateKeyOfSize
   , encryptSym
   , SymEncryptionException (..)
   , decryptSym
@@ -174,8 +176,12 @@
 
 -- | Generate a new 'Key'
 generateKey :: IO Key
-generateKey =
-    Key <$> Random.getRandomBytes 32
+generateKey = generateKeyOfSize 32
+
+-- | Generates a new 'Key' with the given size
+generateKeyOfSize :: Int -> IO Key
+generateKeyOfSize n =
+  Key <$> Random.getRandomBytes n
 
 data SymEncryptionException = SymEncryptionException'CryptoniteError CryptoError
   deriving Show
