Skip to content

Reading the whole file in memory #1

@mbraeutig

Description

@mbraeutig

Hello,

you ar reading the whole file in memory.

src, err := ioutil.ReadAll(plainFile)

Can you make a Version without reading the whole file in memory,
for example, to use "io.reader" or ...

or an new api like this
func (c *AESCrypt) Encrypt(src io.Reader, dst io.Writer)

Why:
Less memory by encrypting big files.

by the way
Nice Work

Greets and Thanks
Michael

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions