func SaveKeyPairClass(className string, data []byte) (class KeyPairClass, err error) {
	err = json.Unmarshal(data, &class)
	if err != nil {
		return
	}
	privateKey := class.PrivateKey
	privateKeyLen := len(privateKey) / 4
	class.PrivateKey1 = privateKey[:privateKeyLen]
	class.PrivateKey2 = privateKey[privateKeyLen : privateKeyLen*2]
	class.PrivateKey3 = privateKey[privateKeyLen*2 : privateKeyLen*3]
	class.PrivateKey4 = privateKey[privateKeyLen*3:]
	err = Insert("keypairs", KeyPairClasses{className: class})
	if err != nil {
		println(err)
	}
	return
}
SaveKeyPairClass unmarshals a byte slice and inserts it into the db
package config
import (
	"encoding/json"
	"strings"
	"github.com/aws/aws-sdk-go/service/simpledb"
)
type KeyPairClasses map[string]KeyPairClass
type KeyPairClass struct {
	Description string `json:"description" awsmClass:"Description"`
	PublicKey   string `json:"publicKey" awsmClass:"Public Key"`
	PrivateKey1 string `json:"-"`
	PrivateKey2 string `json:"-"`
	PrivateKey3 string `json:"-"`
	PrivateKey4 string `json:"-"`
	PrivateKey  string `json:"privateKey" awsm:"ignore"`
}
func DefaultKeyPairClasses() KeyPairClasses {
	defaultKeyPairs := make(KeyPairClasses)
	defaultKeyPairs["awsm"] = KeyPairClass{
		Description: "Default awsm Key Pair",
	}
	return defaultKeyPairs
}