The present invention relates to compositions and methods for treating or preventing hyperglycemia and diseases associated with hyperglycemia. In certain embodiments, the composition comprises a peptide having the amino acid sequence KRSCYK wherein the peptide consists of D-amino acids is useful in treating or preventing diabetes. In some aspects, the peptide of the invention is encapsulated in a nanoparticle.