title: How to encrypt large file with RSA?
body: <p>Code <a href="https://play.golang.org/p/CUEqjsJq5c" rel="noreferrer">https://play.golang.org/p/CUEqjsJq5c</a> </p>
  
  <p>Error:</p>
  
  <pre><code>panic: crypto/rsa: message too long for RSA public key size
  
  goroutine 1 [running]:
  panic(0x4a6d80, 0xc420010420)
      /usr/local/go/src/runtime/panic.go:500 +0x1a1
  main.main()
      /tmp/sample.go:28 +0xfa
  </code></pre>
  
  <p>File size 811 byte (for test encrypt self source file). I want encrypt some bigger files, 1..500 mb. Can I do it with RSA or need use some other methods?</p>